<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<jsp:useBean id="organizations" scope="page"
             class="edu.hawaii.myisern.action.OrganizationActionBean"/>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>Edit Researcher</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
    Add/Edit Researcher: <br /><br />
  
    <stripes:form id="editResearcher" action="/Researcher.action">
    <table id="researcherEdit" class="plainTable" border="1">
      <tr>
        <td class="label">Name:</td>
        <td><stripes:text name="name" value="${researcher.name}" size="40" /></td>
      </tr>
      <tr>
        <td class="label">Email:</td>
        <td><stripes:text name="email" value="${researcher.email}" size="40" /></td>
      </tr>
      <tr>
        <td class="label">Organization:</td>
        <td><stripes:select name="organization" value="${researcher.organization}" >
              <stripes:option label="--" value="" />
                <stripes:options-collection collection="${organizations.organizationList}"
                                            label="name" value="name" />
            </stripes:select>
        </td>
      </tr>
      <tr>
        <td class="label">Picture Link:</td>
        <td><stripes:text name="pictureLink" value="${researcher.pictureLink}" size="55" /></td>
      </tr>
      <tr>
        <td class="label">Bio Statement:</td>
        <td><stripes:textarea name="bioStatement" 
                              value="${researcher.bioStatement}"
                              class="text" 
                              rows="5" 
                              cols="60" /></td>
      </tr>
    </table>
    <stripes:submit value="Save" name="save"/>
    </stripes:form>
    
  </body>
</html>